package kmu.lwl.imp.impl;

import kmu.lwl.entiy.Student;
import kmu.lwl.factory.HibernateFactory;
import kmu.lwl.imp.AlterDao;
import org.hibernate.Session;
import org.hibernate.Transaction;

public class AlterDaoimpl implements AlterDao {
    @Override
    public void update(Student student) {
        Session session = HibernateFactory.getSession();
        Transaction transaction = session.beginTransaction();
        session.update(student);
        transaction.commit();
        session.close();
    }
}
